package com.nirvana.admin.resource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nirvana.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 资源信息表，后续可考虑迁移出admin模块，admin只做后台相关内容
 * </p>
 *
 * @author zhangshuaiyin
 * @since 2022-01-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("resource")
@ApiModel(value = "Resource对象", description = "")
public class Resource extends BaseModel<Resource> {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "资源类型")
    private String resourceType;

    @ApiModelProperty(value = "资源标题")
    private String resourceTitle;

    @ApiModelProperty(value = "资源子标题")
    private String resourceSubtitle;

    @ApiModelProperty(value = "资源描述信息")
    private String resourceDescription;

    @ApiModelProperty(value = "资源链接")
    private String resourceUrl;
}
